import Vue from 'vue'
import Router from 'vue-router'
import Page404 from '@/entrys/Page404';
const HomePage = () => import('@/views/HomePage');
const Login = () => import('@/views/Login.vue');
const ForgetPassword = () => import('@/views/ForgetPassword.vue');

Vue.use(Router);

let router =  new Router({
    routes: [
        {
            path: '/page404',
            component: Page404
        },
        {
            path: '/login',
            component: Login,
        },
        {
            path: '/main',
            // meta: {
            //     loginPass: true
            // },
            component: HomePage
        },
        {
            path: '/forgetPassword',
            component: ForgetPassword
        },
        {
            path: "*",
            redirect: '/page404'
        }
    ]
})

export default router;
